package com.example.kakao01;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

public class MyItemView extends FrameLayout {

	TextView textview;
	ImageView expandView;
	MyData mData;

	public MyItemView(Context context) {
		super(context);

		LayoutInflater inflater = LayoutInflater.from(context);
		inflater.inflate(R.layout.my_list_item_view, this);

		textview = (TextView) findViewById(R.id.title);
		expandView = (ImageView) findViewById(R.id.expand);

	}

	public void setData(MyData data) {
		mData = data;
		textview.setText(data.title);

	}
}
